package com.tyut.service;

import com.tyut.pojo.Customer;

import java.util.List;

/**
 * 用户表业务层接口
 */
public interface CustomerService {
    /**
     * 增加用户
     * @param customer
     * @return
     */
    boolean addCustomer(Customer customer);

    /**
     * 删除用户
     * @param cid
     */
    boolean deleteCustomer(Integer cid);

    /**
     * 修改用户
     * @param customer
     */
    boolean updateCustomer(Customer customer);
    /**
     * 查询所有用户
     */
    List<Customer> queryListCustomer();
    /**
     * 根据id查询
     */
    Customer queryCustomerById(Integer cid);
    /**
     * 用户登录
     */
    Customer loginCustomer(Customer customer);
}
